﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="workplan.ascx.cs" Inherits="AnyOffice.general.mytable.workplan" %>
<script language="JavaScript">                             
function open_workplan(plan_id)
{
	URL="/general/work_plan/read_workplan.aspx?plan_id="+plan_id;
	myleft=(screen.availWidth-600)/2;
	window.open(URL,"read_notify","height=450,width=600,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}                                                   
</script>
<div id="module_9" style="position: relative;padding-bottom:10px;">
<table class="TableBlock" width="100%" cellspacing="0" cellpadding="2">
	<tr class="TableHeader">
		<td id="module_9_head" class="TableHeader" width="70%">
			<img src="/images/menu/work_plan.gif" align="absMiddle"> 今日计划
		</td>
		<td id="module_9_more" align="right">
			<div id="module_9_op" style="float:right;display:none;">&nbsp;<a id="module_9_url" href="#" onclick="_del('9');"><img border="0" src="/images/x.gif" alt="不显示该模块"></a></div>
			<div style="float:right"><a href="/general/work_plan/show/index.aspx">全部</a>&nbsp;</div>
		</td>
	</tr>
	<tr class="TableData" style="BACKGROUND:url(/images/water/work_plan.jpg) #ffffff no-repeat right bottom">
		<td colspan="2" height="60">
		<div id="divWorkplan">
			<asp:Repeater id="rptWorkplan" runat="server" EnableViewState="False">
				<ItemTemplate>
				·<a href="javascript:open_workplan('<%#DataBinder.Eval(Container.DataItem,"PlanId")%>');"><%#DataBinder.Eval(Container.DataItem,"Name")%></a>
				<br>
				</ItemTemplate>
			</asp:Repeater>
			<asp:Literal id="litWorkplan" runat="server"></asp:Literal>
			</div>
		</td>
	</tr>
</table>
<SCRIPT language="javascript">
CODE_IDSTR += "12,";
var timer_workplan = null;
var str_workplan = "";
function GetWorkplan()
{	
	if(timer_workplan != null)
		window.clearTimeout(timer_workplan);
		
	AnyOffice.general.mytable.AjaxMethods.GetWorkplan(CallBack_GetWorkplan);
	timer_workplan=setTimeout("GetWorkplan()",AJAX_INTERVAL*10);
}
function CallBack_GetWorkplan(res)
{	
	if (res.error != null)  
		return;	
	if(str_workplan != res.value)	
		document.getElementById('divWorkplan').innerHTML = res.value;
	str_workplan = res.value;
}
GetWorkplan();
</SCRIPT>
</div>
